<template>
	<view class="content" :style="{background:'#F7F7F7;'}">
		<view class="public-question-box" :style="{background:'#FFFFFF;',height:show_answer?'auto;':'94rpx;'}">
			<view class="question-title" @click="changeAnswer">
				<view class="left-q">
					<image class="q-icon" src="../../../static/question.png" mode=""></image>
					<text class="font34" :style="{color:'#111111;'}">已发起的抽奖可以取消或编辑吗？</text>
				</view>
				<image class="show-more-icon" :class="show_answer?'show-open':'show-close'" src="../../../static/showmoer.png" mode=""></image>
			</view>
			<view class="answer-text">
				<image class="answer-icon" src="../../../static/answer.png" mode=""></image>
				<text class="font28 answer-info" :style="{color:'#AEAEAE;'}">无人参与的抽奖可以修改编辑，有人参与后将无法进行编辑。</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show_answer:false,
			}
		},
		methods: {
			changeAnswer(){
				this.show_answer = !this.show_answer
				console.log(this.show_answer)
			},
		}
	}
</script>

<style lang="scss" scoped>
	.answer-text{
		display: flex;
		width: 100%;
		margin-top: 51upx;
		.answer-icon{
			width: 30upx;
			height: 30upx;
			margin-right: 22upx;
		}
		.answer-info{
			line-height: 40upx;
		}
	}
	.question-title{
		display: flex;
		align-items: center;
		width: 100%;
		justify-content: space-between;
		.left-q{
			display: flex;
			align-items: center;
			.q-icon{
				width: 30upx;
				height: 30upx;
				margin-right: 20upx;
			}
		}
		.show-open{
			transform: rotate(180deg);
		}
		.show-close{
			transform: rotate(0deg);
		}
		.show-more-icon{
			width: 31upx;
			height: 20upx;
		}
	}
	.public-question-box{
		display: flex;
		flex-direction: column;
		align-items: center;
		width: 690upx;
		padding: 32upx;
		border-radius: 20upx;
		overflow: hidden;
	}
	.content{
		width: 750upx;
		display: flex;
		align-items: center;
		flex-direction: column;
		min-height: 100vh;
		padding: 30upx;
		box-sizing: border-box;
	}
</style>
